import http from "@/api";
import { MESSAGE_PORT } from "@/api/config/servicePort";
import { Message } from "@/api/interface";

export const getMessageList = () => {
  return http.get<Message.ResMessage[]>(MESSAGE_PORT + `/list`);
};

export const updateMessage = (params: Message.ReqMessage) => {
  return http.post(MESSAGE_PORT + `/update`, params, { loading: false });
};
